package com.gzx.risk.core.apis.result.jishu;

import java.util.Map;

import com.gzx.risk.core.apis.result.RiskResult;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * {"data":{"score":"4.52"},"code":"200","swift_number":"gzx20250728134819_20250804234834_1744252327"}
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class JishuEd006_v1 extends RiskResult {
	private String code;
	private String msg;
	private Map<String, Object> data;

	public Double getScore() {
		if (data != null && data.containsKey("score")) {
			return Double.valueOf(data.get("score").toString());
		} else {
			return -1.0;
		}
	}
}
